package com.train.sentinel.feigns;

import com.alibaba.csp.sentinel.annotation.SentinelResource;
import com.train.sentinel.sentinelHandler.HandlerConfig;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * 服务调用失败时 采用PayServerFallback中的方法
 * */
@FeignClient(value = "pay-server",fallback = PayServerFallback.class)
public interface PayServer {
    @RequestMapping(path = "/pay/sentinel",method = {RequestMethod.GET})
    String sentinel();
}
